package com.gxg.task;

import com.gxg.services.VNCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TimedTask
{
  @Autowired
  private VNCService vncService;
  
  @Scheduled(fixedRate=10000L)
  public void checkVNCNodeUsed()
  {
    this.vncService.checkVNCNodeUsed();
  }
  
  @Scheduled(fixedRate=2000L)
  public void checkNodeExist()
  {
    this.vncService.checkNodeExist();
  }
}
